<?php


namespace app\index\validate;

use think\Validate;

class Ad extends Validate{

    protected $rule =   [
        'name'  => 'require|max:25',
        'password'   => 'require|min:3',
    ];

    protected $message  =   [
        'name.require' => '名称不能为空',
        'name.max'     => '名称最多不能超过25个字符',
//        'password.number'   => '密码必须是数字',

        'password.require' => '密码不能为空',
         'password.between'  => '密码只能在1-120之间',
    ];


}
